package be.bejug.scrumadmin.components;

import be.bejug.scrumadmin.enums.Size;
import be.bejug.scrumadmin.enums.Style;

import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.VerticalLayout;

/**
 * @author Glenn Dejaeger
 * 
 */
public class Header extends VerticalLayout {

	/**
	 * Serial Version UID.
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * Default constructor.
	 */
	public Header() {
		init();
	}

	/**
	 * 
	 * Initialize panel.
	 */
	private void init() {
		HorizontalLayout hLayout = new HorizontalLayout();
		hLayout.setStyleName(Style.HEADER.getStyleName());

		hLayout.setWidth(Size.HEADER_WIDTH.getValue(),
				Size.HEADER_WIDTH.getUnits());
		hLayout.setHeight(Size.HEADER_HEIGHT.getValue(),
				Size.HEADER_HEIGHT.getUnits());
		addComponent(hLayout);

		setWidth(Size.HEADER_WIDTH.getValue(), Size.HEADER_WIDTH.getUnits());
		setHeight(Size.HEADER_HEIGHT.getValue(), Size.HEADER_HEIGHT.getUnits());
	}

}
